#!/bin/zsh

BOUND=$1
checkvar BOUND

set -eu

CFG=analysis/intensity.cfg
EPS=intensity.eps
DATA=intensity.data
SMOOTH=intensity.smooth.data

time tclsh analysis/intensity.tcl 356 > ${DATA}
time tclsh analysis/smooth.tcl ${BOUND} < ${DATA} > ${SMOOTH}
swift_plotter.zsh -s ${CFG} ${EPS} ${SMOOTH}
